package com.ruibang.glass.material.feign;

import com.ruibang.glass.common.domain.file.FileBusiness;
import com.ruibang.glass.material.domain.resp.DecideResultResp;
import com.teaming.cloud.framework2.common.model.ResultBody;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.ArrayList;
import java.util.List;

@FeignClient("glass-quality")
@Component
public interface QualityApi {

    @RequestMapping(value = "/api/glass/file/updateBusinessById",method = RequestMethod.POST)
    ResultBody updateBusinessById(@RequestBody FileBusiness fileBusiness);

    @RequestMapping(value = "/api/quality/specs/config/queryDecideResult",method = RequestMethod.POST)
    @ApiOperation(value="查询检验结果",notes="查询检验结果")
    ResultBody<List<DecideResultResp>> queryDecideResult(@RequestBody List<String> glassCodes);
}
